-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a diagnostic to tell the user about the partition table format #397
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just fyi, miette supports a url
param under #[diagnostic]
, see https://github.com/zkat/miette#-diagnostic-code-urls
…en the image doesn't fit
d854cd3
to
d33e6a1
Compare
Thanks! I didn't know about that, I've updated the diagnostic to use the URL feature. |
@@ -44,6 +44,11 @@ pub enum Error { | |||
#[error( | |||
"Supplied ELF image of {0}B is too big, and doesn't fit configured app partition of {1}B" | |||
)] | |||
#[diagnostic( | |||
code(espflash::image_too_big), | |||
help("Reduce the size of the binary or increase the size of the partition."), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would have preferred this to say "increase the size of the app partition", as it's pretty ambiguous now. Will fix it in another PR before release I guess.
When the image doesn't fit.